//
//  SEPrescriptionPickDrugsListCell.swift
//  SmartEyeForDoctor
//
//  Created by QDSG on 2021/5/11.
//

import UIKit

class SEPrescriptionPickDrugsListCell: UITableViewCell {

    func update(with viewModel: SEPrescriptionDrugPickViewModel) {
        drugNameLabel.text = viewModel.drugPickModel.name
    }
    
    override func setHighlighted(_ highlighted: Bool, animated: Bool) {
        super.setHighlighted(highlighted, animated: animated)
        drugNameLabel.textColor = highlighted ? Asset.main.color : Asset.textDark.color
    }
    
    @IBOutlet private weak var drugNameLabel: UILabel!
    
}
